home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 3-069 qemm 603 / 1.ima / QMANFEST / CH5.MAN < prev    next >
Encoding:
Text File  |  1991-10-07  |  14.5 KB  |  368 lines

  1. Chapter 5
  2.  
  3. First Meg
  4.  
  5.  This chapter covers the information you need to know to make
  6. best use of your first megabyte of memory. For DOS PCs, the first
  7. megabyte of memory is very important. It is the area in which DOS
  8. programs are run and the area in which your PC hardware is
  9. controlled.
  10.  
  11. There are two areas of memory in your PC's first megabyte ~dash~
  12. conventional and high memory. Conventional memory is the
  13. contiguous memory, usually located in the memory addresses
  14. between 0K and 640K, that is used to run DOS programs.
  15. Conventional memory will be smaller if your PC has less than 640K
  16. of memory. It may be possible to increase conventional memory by
  17. 64K or 96K ~dash~ if the contiguous memory area immediately
  18. following the 640K is available.
  19.  
  20. High memory is the memory between the top of conventional memory
  21. and 1024K (1MB). This area, like conventional memory, can be
  22. addressed by DOS. However, this area has been traditionally
  23. reserved by IBM for use by the system ~dash~ for the ROM BIOS 
  24. and hardware devices. As DOS programs have become larger, and as
  25. you have need to run several programs at once, high memory has
  26. increased in importance. The reason is that there are often more
  27. memory addresses reserved than are actually being used. So there
  28. are precious available memory addresses, usable by DOS, ripe for
  29. the picking!
  30.  
  31. Note that your PC may not have actual physical memory for each
  32. memory address in high memory. This physical memory may be
  33. provided by the hardware configured for your PC ~dash~ for
  34. example, memory provided by the ROM BIOS, by video adapters, or
  35. by an expanded memory manager.
  36.  
  37. Because high memory has specific addresses reserved for adapters
  38. and the system ROM, any memory addresses available may not be
  39. contiguous. Since all DOS programs require that the memory
  40. addresses in which they run be contiguous, high memory can not be
  41. used to run large programs. Rather, unused or available addresses
  42. in high memory must be used to run programs that fit within the
  43. available block of high memory.
  44.  
  45. To use available high memory addresses (other than video
  46. addresses) does require either EEMS or EMS 4 expanded memory
  47. hardware capable of mapping into conventional memory, or an 80386
  48. processor with an EMS 4 expanded memory manager. In both cases,
  49. the memory manager can map 16K contiguous blocks of expanded
  50. memory into unused 16K blocks of high memory. 
  51.  
  52. The benefit of this capablity to you is that you can run network
  53. drivers, mouse drivers, small TSRs, and even parts of DOS in high
  54. memory ~dash~ thus leaving conventional memory for your large DOS
  55. programs.
  56.  
  57. ~Subhead~ First Meg Overview (FO)
  58.  
  59.  First Meg Overview shows you a map of the memory areas used in
  60. your PC's first megabyte of address space.
  61.  
  62.  The map has two sections: the area known as conventional memory
  63. (usually the first 640K of memory) and the area between
  64. conventional memory and the first megabyte boundary, known as
  65. high memory. This is nominally for hardware adapters and BIOS
  66. ROM. 
  67.  
  68. ~Heading~ Introduction to the First Meg Map
  69.  
  70.  First Meg Overview shows you how you are currently using memory.
  71. With this, you can:
  72.  
  73. ~Item~ Find out the size of the largest program you can run in
  74. conventional memory (Available), 
  75.  
  76. ~Item~ Find out how much of conventional memory is being used by
  77. COMMAND.COM and TSRs (Program Area),
  78.  
  79. ~Item~ Determine if there is high memory, designated as Unused,
  80. where Manifest finds no ROMS or mappable memory~dash~but could be
  81. mapped with memory. You do need EMS 4 or EEMS memory to use this
  82. memory. 
  83.  
  84. ~Item~ See what high memory is available to be mapped by programs
  85. using EMS 4.0 or EEMS. These blocks of memory (always a multiple
  86. of 16K in size) are designated as mappable, or as the Page Frame.
  87.  
  88. ~Item~ See what memory, designated as High RAM, is usable by
  89. QEMM's or QRAM's LOADHI to load drivers, TSRs or parts of DOS in
  90. high memory.
  91.  
  92. ~Heading~ Understanding the First Meg Map
  93.  
  94.  To better understand the information reported in First Meg
  95. Overview, familiarity with some of the other Manifest screens may
  96. be helpful. For example:
  97.  
  98. ~Item~ memory reported for DOS includes that of the DOS kernel
  99. plus the memory added by statements in CONFIG.SYS. (Refer to DOS
  100. Overview for details),
  101.  
  102. ~Item~ memory reported as Program Area consists of memory used by
  103. COMMAND.COM and any TSRs not loaded high. (Refer to First Meg
  104. Programs),
  105.  
  106. ~Item~ memory reported as Video Text/Graphics or Video ROM shows
  107. the memory devoted to and/or used by your video adapter (See
  108. System Adapters),
  109.  
  110. ~Item~ memory reported as High Ram may have programs loaded
  111. there. (See First Meg Programs)
  112.  
  113. ~Item~ memory reported as mappable is under control of the
  114. expanded memory manager. (See Expanded Memory Chapter)
  115.  
  116. ~Item~ information on this screen can show you the potential
  117. benefits of EMS 4 or EEMS memory if you currently have none, or
  118. help you optimize your use of EMS 4 or EEMS memory if you do.
  119. Unfamiliar terms used here are more fully defined in the Expanded
  120. and QEMM chapters.
  121.  
  122.  Manifest examines memory and determines how each area has been
  123. used. An area that it cannot assign a use for is labeled as
  124. Unused. Typically, these areas could be used by an expanded
  125. memory board and manager that had the necessary hardware and
  126. software capabilities, and could then be turned into High RAM
  127. with Quarterdeck's QRAM or QEMM.
  128.  
  129. ~Heading~ Hints for DESQview Users
  130.  
  131.  DESQview users, running Manifest in a window, will see
  132. information related to the configuration of the window's memory,
  133. not the configuration of the PC's memory. This means that the
  134. memory marked as Available is the amount of memory available for
  135. use by programs running in the window, not by all programs on the
  136. PC.
  137.  
  138.  Secondly, DESQview makes it so that all memory which is not
  139. usable by programs in the window will not be included in the
  140. window's known memory area. This makes Manifest report that
  141. conventional memory ends not at the "real" end of conventional
  142. memory, but rather at the end of the memory available to the
  143. DESQview window.
  144.  
  145.  Finally, all areas marked as Mappable outside of DESQview will
  146. be hidden from programs running in DESQview, and will be
  147. designated by Manifest as Unused.
  148.  
  149. ~Subhead~ First Meg Programs (FR)
  150.  
  151.  First Meg Programs shows you a map of what is loaded into memory
  152. (excluding DOS and device drivers), and the areas of memory
  153. available for use. If you are using Quarterdeck's QRAM,
  154. QEMM-50/60, or QEMM-386, there may be a double line in your
  155. display. If there is, it indicates the point where conventional
  156. memory ends, and high memory begins. 
  157.  
  158.  If present, the program map of high memory shows where memory
  159. resident programs, drivers (i.e. network and mouse drivers) and
  160. DOS FILES, BUFFERS, FCBS, and LASTDRIVE have been loaded by
  161. QEMM's or QRAM's LOADHI. It also shows you available memory.
  162.  
  163.  You use this screen to:
  164.  
  165. ~Item~ see what memory your programs are using. Often you will
  166. see a separate area for the program's environment, and a separate
  167. area allocated for the program's data.
  168.  
  169. ~Item~ identify programs, currently loaded in conventional
  170. memory, that could be loaded in high memory.
  171.  
  172. ~Subhead~ Memory Accounting
  173.  
  174.  If Manifest cannot determine the name of your program or device,
  175. it gives it a name. The name given is the memory address where
  176. the program is running.
  177.  
  178.  Manifest excludes itself from its reports. Note that nowhere is
  179. there reference to Manifest in the program map. The report's
  180. purpose is to give you information about your programs as you
  181. normally use them. Manifest will report itself if it is left
  182. resident in memory.
  183.  
  184.  Memory Fragments: Every program, when loaded, is given an area
  185. of memory known as an environment. These areas are shown
  186. separately in this map. When Manifest shows small fragments of
  187. available high memory, it is often because a program has released
  188. its environment memory. These areas show up as available, but due
  189. to their size are not particularly useful.
  190.  
  191.  The high memory shown by Manifest as Available can be used
  192. either to load more of your TSRs, device drivers, and DOS data
  193. into high memory or used by DESQview's XDV program to move parts
  194. of DESQview into high memory.
  195.  
  196. ~Subhead~ First Meg Interrupts (FI)
  197.  
  198.  First Meg Interrupts presents two detailed views of your PC's
  199. interrupt vectors. The Interrupt Owners screen lists the
  200. programs, drivers, and ROMs providing interrupt services,
  201. followed by the interrupt numbers they service. The Interrupt
  202. List screen lists the interrupts by their number, giving also the
  203. name or purpose of the interrupt, its address, and the name of
  204. the program, driver or ROM providing the service.
  205.  
  206.  These screens only show the most recent program which has the
  207. vector. Other programs loaded earlier may also be servicing the
  208. interrupt.
  209.  
  210.  On a color display, program and driver names are displayed in
  211. cyan, while DOS and ROMS are shown in white.
  212.  
  213.  These screens provide technical information of use to
  214. programmers and technical support personnel. If you are a non-
  215. technical user, your ability to relay this information may help
  216. to resolve some difficulty you are experiencing.
  217.  
  218. ~Subhead~ Uses of First Meg Interrupts
  219.  
  220.  You use the Interrupt Owners screen to:
  221.  
  222. ~Item~ determine what programs service interrupts, and which
  223. interrupts they service, 
  224.  
  225. ~Item~ determine which interrupts are not being serviced (i.e.
  226. the interrupt address is zero or the address indicates the ROM
  227. BIOS default interrupt handler), or
  228.  
  229. ~Item~ with Manifest in TSR mode, help you profile a program's
  230. interrupt usage.
  231.  
  232.  Programmers may find these interrupt screens helpful:
  233.  
  234. ~Item~ in determining conflicts among programs trying to provide
  235. interrupt services, 
  236.  
  237. ~Item~ during debug sessions for locating the routines, 
  238.  
  239. ~Item~ for finding a "safe" interrupt to use, or
  240.  
  241. ~Item~ as a quick reference to the interrupt services defined.
  242.  
  243. ~Subhead~ Interrupt List
  244.  
  245.  The Interrupt List consists of sixteen screens that list
  246. interrupts by their number. The list also shows the name or
  247. purpose of the interrupt and the address and name of the program
  248. providing the service.You display this list by pressing the F3
  249. key when the Interrupt Owners screen is displayed.
  250.  
  251.  You can display any one of the 16 screens by entering Alt-X
  252. where x is the first digit of the hexadecimal interrupt number.
  253. For example, Alt-2 will display the screen containing interrupts
  254. 20 through 2F.
  255.  
  256.  You can use the Interrupt List to:
  257.  
  258. ~Item~ learn what program is using an interrupt (for example, INT
  259. 16 if you have keyboard problems), and
  260.  
  261. ~Item~ check whether the interrupt is in use by another program.
  262.  
  263.  Note: Due to the use of the interrupt vector area of memory as a
  264. program stack during power up, few programs make use of any of
  265. the later interrupt numbers available, and the contents of these
  266. vectors are seldom meaningful. Consequently, Manifest does not
  267. attempt to identify programs using vectors C0 to FF.
  268.  
  269. ~Subhead~ First Meg BIOS Data (FB)
  270.  
  271.  First Meg BIOS Data screens present the data area in RAM devoted
  272. for use by the ROM BIOS. 
  273.  
  274.  This BIOS Data Area is an area of conventional memory used by
  275. the system ROMs for keeping track of the state of the
  276. system~dash~the keyboard, disk drives and video adapter cards.
  277. The BIOS data area is 172 bytes of memory located just above the
  278. interrupt vectors.
  279.  
  280.  Many application programs also reference, and some change, the
  281. information contained in this memory area.
  282.  
  283.  Experienced PC users may find these screens helpful in a number
  284. of ways:
  285.  
  286. ~Item~ as a database reference of the BIOS data structure, and
  287.  
  288. ~Item~ for quick access to port address values or the installed
  289. hardware and memory size values.
  290.  
  291.  Experimenters and students may find these screens helpful in
  292. confirming the effect of DOS and BIOS calls.
  293.  
  294. ~Subhead~ Technical Hints
  295.  
  296.  PC's with an extended BIOS Segment. Manifest reports the
  297. existence of the Extended BIOS segment at offset 0E. In other
  298. systems, this location is assigned to a possible fourth parallel
  299. port. If your computer displays only 639K of conventional memory,
  300. this is an indication that the computer does have an Extended
  301. BIOS Segment. IMPORTANT: QEMM-386 and QEMM-50/60 version 5
  302. automatically relocate this data.
  303.  
  304. ~Subhead~ Timings (FM)
  305.  
  306.  First Meg Timings provides memory access times for various
  307. segments of the PC's first megabyte of memory. 
  308.  
  309.  The purpose of this display is twofold:
  310.  
  311. ~Item~ first, to show how fast your computer memory is relative
  312. to a PC/XT, and
  313.  
  314. ~Item~ second, to show the relative speeds of different areas of
  315. memory.
  316.  
  317.  Use this display to:
  318.  
  319. ~Item~ see the effect of a hardware memory cache, if you have
  320. one,
  321.  
  322. ~Item~ determine the effect of your PC's Shadow RAM, 
  323.  
  324. ~Item~ analyze the possible effect of upgrading memory boards or
  325. chips,
  326.  
  327. ~Item~ compare the speed of your standard memory with that of any
  328. ROM or video memory, and
  329.  
  330. ~Item~ see the effects of QEMM's ROM feature.
  331.  
  332. ~Subhead~ Timing Insights
  333.  
  334.  Some computers have a hardware feature known as memory cache,
  335. which can greatly improve the performance by effectively speeding
  336. up the memory of the PC. A memory cache is extra-fast memory
  337. which stores recently accessed data so that if it is accessed
  338. again soon, it will be accessed from the extra-fast memory rather
  339. than from normal memory. Since much of a computer's activity
  340. involves accessing the same memory repeatedly, this technique
  341. causes at least 50% and sometimes well over 90% of the computer's
  342. memory accesses to be sped up. If your machine has a memory
  343. cache, then Manifest will report its speed. This timing is the
  344. most significant one for evaluating your machines's effective
  345. speed.
  346.  
  347.  Slowest Memory: ROM memory, video adapter memory and other
  348. adapter memory will usually be the slowest memory. Unanticipated
  349. variations in any add-on memory you have will show up here. 
  350.  
  351.  Variations in Speed: It is normal for your PC's speed to vary up
  352. to 10% from one reading to the next. As long as the variances
  353. between ratings is not more than 10%, no problem is indicated. 
  354.  
  355. ~Subhead~ Timing Insights (Continued)
  356.  
  357.  All ROM memory is slow. Because ROMs are usually 8 bit memory,
  358. ROMs run at the same speed as 8088 memory when running on an
  359. 8088, half speed when running on a 80286 or SX80386, and slower
  360. still if you are using an 80386 (an 80386 uses 32 bit memory, and
  361. 8 bit ROM).
  362.  
  363.  If you are using QEMM-386, you may use QEMM.SYS's ROM switch to
  364. map your slow ROMs into RAM. If the timings test indicates that
  365. all but your PC's adapter memory in your 80386 runs at full
  366. speed, your ROM has already been mapped by the system. Compaq
  367. computers and others do this.
  368.